import java.util.*;

public class Test {

    public static void main1(String[] args) {
//        Scanner in = new Scanner(System.in);
//        int n = in.nextInt();

        int n = 7;

//        int[] dp = new int[n + 1];
//        dp[1] = 1;
//        dp[2] = 2;
//
//        for(int i = 3; i <= n; i++){
//            dp[i] = dp[i - 1] + dp[i - 2];
//        }
//        System.out.println(dp[n]);
        int a = 0, b = 1, c = 2;
        if (n == 0) {
            System.out.println(0);
        } else if (n == 1) {
            System.out.println(1);
        } else if (n == 2) {
            System.out.println(2);
        } else {
            for (int i = 3; i < n; i++) {
                a =  b + c;
                b = c;
                c = a;
            }
            System.out.println(a);
        }
    }

    public static boolean IsContinuous (int[] numbers) {
        Arrays.sort(numbers);
        int zero = 0, gap = 0;

        for(int i = 0; i < numbers.length - 1; i++){
            if(numbers[i] == 0){
                zero++;
            }else{
                if(numbers[i + 1] - numbers[i] == 0){
                    return false;
                }else{
                    gap += numbers[i + 1] - numbers[i] - 1;
                }
            }
        }
        if(zero > gap){
            return true;
        }else{
            return false;
        }
    }

    public static void main(String[] args) {
        int[] n = new int[]{6,0,2,0,4};
        System.out.println(Test.IsContinuous(n));
    }
}
